import request from '@/utils/request'

// 获取消息列表 /admin/message/list
export function getMessageList(queryParams) {
  return request({
    url: '/admin/message/list',
    method: 'get',
    params: queryParams
  })
}

// 删除消息 /admin/message/delete
export function deleteMessage(messageIdList) {
  return request({
    url: '/admin/message/delete',
    method: 'delete',
    data: messageIdList
  })
}

//审核消息
export function checkMessage(checkDTO) {
  return request({
    url: '/admin/message/pass',
    method: 'put',
    data: checkDTO
  })
}